import java.util.Scanner;

/**
 * @Description TODO
 * @Author hhy
 * @Date 2020/9/16 17:22
 */
public class Demo02 {
    String province[] = {"湖南省","湖北省","北京"};
    String city[][] = {
            {"长沙市","株洲市","湘潭市"},
            {"武汉市","黄石市","黄冈市"},
            {"北京市"}

    };
    public static void main(String[] args) {
        Demo02 d = new Demo02();
        d.a();
    }

    public void a(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请选择你所在的省份");
        System.out.println("0.湖南省\n1.湖北省\n2.北京");
        int cityNum = sc.nextInt();
        System.out.println("请选择你所在的城市");
        for (int i = 0; i < city[cityNum].length; i++) {
            System.out.println(i+"."+city[cityNum][i]);
        }
        int cityNum2 = sc.nextInt();

        System.out.println("你在"+province[cityNum]+city[cityNum][cityNum2]);

    }
}
